package com.bcinfo.iccard.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.bcinfo.iccard.model.ToMerchantComboCardEarningsDetail;

public interface ToMerchantComboCardEarningsDetailMapper
{
    int deleteByPrimaryKey(Long combocardDailyEarningsDetailId);

    int insert(ToMerchantComboCardEarningsDetail record);

    int insertSelective(ToMerchantComboCardEarningsDetail record);

    ToMerchantComboCardEarningsDetail selectByPrimaryKey(Long combocardDailyEarningsDetailId);

    int updateByPrimaryKeySelective(ToMerchantComboCardEarningsDetail record);

    int updateByPrimaryKey(ToMerchantComboCardEarningsDetail record);

    List<ToMerchantComboCardEarningsDetail> selectByCard(@Param("dataId") long dataId, @Param("cardId") String cardId,
            @Param("beginTime") String beginTime, @Param("endTime") String endTime, @Param("firstIndex") int i,
            @Param("maxRows") int pageSize);

    int getLastSelectTotalNum();

    ToMerchantComboCardEarningsDetail selectSumByCard(@Param("dataId") long dataId, @Param("cardId") String cardId,
            @Param("beginTime") String beginTime, @Param("endTime") String endTime);

    List<ToMerchantComboCardEarningsDetail> selectSumByCardForChat(@Param("dataId") long dataId,
            @Param("beginTime") String beginTime, @Param("endTime") String endTime);
}